// 医疗服务项目管理 API
import request from './request'

// 分页查询医疗服务项目
export const getMedicalServiceItemsList = (params) => {
  return request.post('/medical_service_items/page', params)
}

// 根据ID查询医疗服务项目
export const getMedicalServiceItemById = (id) => {
  return request.get(`/medical_service_items/${id}`)
}

// 新增医疗服务项目
export const addMedicalServiceItem = (data) => {
  return request.post('/medical_service_items/add', data)
}

// 修改医疗服务项目
export const updateMedicalServiceItem = (data) => {
  return request.put('/medical_service_items/update', data)
}

// 删除医疗服务项目
export const deleteMedicalServiceItem = (id) => {
  return request.post(`/medical_service_items/delete/${id}`)
}

// 批量删除医疗服务项目
export const batchDeleteMedicalServiceItems = (ids) => {
  return request.post('/medical_service_items/batch/delete', ids)
}
